package com.gec.obwiki.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.gec.obwiki.entity.Ebook;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gec.obwiki.resp.EbookQueryResp;
import org.apache.ibatis.annotations.Param;
import org.mapstruct.Mapper;

import java.util.List;

/**
 * <p>
 * 电子书 Mapper 接口
 * </p>
 *
 * @author cr
 * @since 2025-06-19
 */
@Mapper
public interface EbookMapper extends BaseMapper<Ebook>{
    List<Ebook> selectList(QueryWrapper<EbookQueryResp> queryWrapper);

    void increaseViewCount(Long ebookId);
//    List<Ebook> selectList(@Param("name") String name);
//    int insert(Ebook ebook);
//    int update(Ebook ebook);
}
